package com.xcf.service.business.settlement.receiptinvoice.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.settlement.receiptinvoice.ReceiptInvoiceService;
import com.xcf.util.PageData;
@Service("ReceiptInvoiceServiceImpl")
public class ReceiptInvoiceServiceImpl implements ReceiptInvoiceService{
	@Resource(name="daoSupport")
	private DaoSupport daoSupport;

	//查询
	@Override
	public List<PageData> serch(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) daoSupport.findForList("receiptinvoicemapper.serch", pd);
	}

	//根据登陆人的名字查询部门和部门ID
	@Override
	public PageData ser(PageData pd)throws Exception {
		
		return (PageData) daoSupport.findForObject("receiptinvoicemapper.ser", pd);
	}

	//新增
	@Override
	public void add(PageData pd) throws Exception {
		daoSupport.save("receiptinvoicemapper.add", pd);
	}

	//修改商务签收状态
	@Override
	public void udite(PageData pd) throws Exception {
	daoSupport.update("receiptinvoicemapper.udite", pd);
	}

	//修改财务签收状态
	@Override
	public void updite(PageData pd) throws Exception {
		daoSupport.update("receiptinvoicemapper.updite", pd);
		
	}

	//商务取消签收
	@Override
	public void quxiao(PageData pd) throws Exception {
		daoSupport.update("receiptinvoicemapper.quxiao", pd);
	}

	//财务取消签收
	@Override
	public void caiwu(PageData pd) throws Exception {
		daoSupport.update("receiptinvoicemapper.caiwu", pd);
		
	}

	//业务部门取消签收
	@Override
	public void yewu(PageData pd) throws Exception {
		daoSupport.update("receiptinvoicemapper.yewu", pd);
		
	}
}
